#include "CApp.h"
 
void CApp::OnRender() {
	//CSurface::OnDraw(Surf_Display,Surf_Leo, 100,100, Anim_Leo.GetCurrentFrame()*75,0, 75, 110);
	//CSurface::Transparent(Surf_Leo, 255,0,255);

	CArea::AreaControl.OnRender(Surf_Display, -CCamera::CameraControl.GetX(), -CCamera::CameraControl.GetY());

	for(int i = 0;i < CEntity::EntityList.size();i++) {
		if(!CEntity::EntityList[i]) 
			continue;
 
		CEntity::EntityList[i]->OnRender(Surf_Display);
	}


	SDL_Flip(Surf_Display);
}